package cn.gailvlun.gll.net;

import android.support.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;



public class NewQueryParam {
    public static final String next = "next";
    public static final String previous = "previous";

    @StringDef(value = {next, previous})
    @Retention(RetentionPolicy.RUNTIME)
    public @interface Direction {}

    @Direction
    private String direction = next;   
    private Integer lastId; 

    @Direction
    public String getDirection() {
        return direction;
    }

    public void setDirection(@Direction String direction) {
        this.direction = direction;
    }

    public Integer getLastId() {
        return lastId;
    }

    public void setLastId(Integer lastId) {
        this.lastId = lastId;
    }
}
